import React, { memo, Suspense } from 'react'
import { renderRoutes } from 'react-router-config'
import routes from '@/router'
import { Button } from 'zarm';

export default memo(function APPWrapper() {
  return (
    <Suspense fallback={<Button />}>{renderRoutes(routes)}</Suspense>
  )
})
